package com.link.base.base.product.dao.mybatis.mapper;

import com.link.base.basic.model.ListOfValue;
import com.link.base.base.product.model.Price;
import com.link.core.basic.model.CallBack;
import com.link.core.basic.model.CallParam;
import com.link.core.basic.query.QueryParams;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 价格
 */
public interface PriceMapper {

    /**
     * 根据价格列表
     *
     * @param qps
     * @return 价格列表
     * @throws Exception
     */
    public List<Price> queryPriceListPage(QueryParams qps) throws Exception;

    /**
     * 添加价格:添加价格
     *
     * @param record
     * @throws Exception
     */
    public void addPriceInsert(Price record) throws Exception;

    /**
     * 修改价格:修改价格
     *
     * @param record
     * @throws Exception
     */
    public void priceUpdate(Price record) throws Exception;

    /**
     * 删除价格:删除价格
     *
     * @param record
     * @throws Exception
     */
    public void delPriceById(Price record) throws Exception;

    /**
     * 接口同步：sap调用接口
     *
     * @param record
     * @throws Exception
     */
    public void insertPriceBymdp(Price record) throws Exception;

    /**
     * 接口同步：sap调用接口
     *
     * @param record
     * @throws Exception
     */
    public void insertPriceBymdpa(Price record) throws Exception;

    /**
     * 调用接口
     *
     * @param record
     * @throws Exception
     */
    public void runPrice(CallParam record) throws Exception;

    /**
     * 查询价格返回值
     * @return
     * @throws Exception
     */
    public CallBack queryPriceCallBack() throws Exception;

    /**
     * 根据SAP独立源代码查询crm独立源代码
     *
     * @param record
     * @return
     * @throws Exception
     */
    public String queryValBySapVal(ListOfValue record) throws Exception;

    /**
     * 根据客户编码查询客户Id
     *
     * @param acctCode
     * @return
     * @throws Exception
     */
    public String queryAcctIdByAcctCode(String acctCode) throws Exception;

    /**
     * 根据产品编码查询产品Id
     *
     * @param prodCode
     * @return
     * @throws Exception
     */
    public String queryProdIdByProdCode(String prodCode) throws Exception;

    /**
     * 删除价格
     *
     * @param reocrd
     * @throws Exception
     */
    public void delPriceBymdp(Price reocrd) throws Exception;

    /**
     * 删除价格
     *
     * @param reocrd
     * @throws Exception
     */
    public void delPriceBymdpa(Price reocrd) throws Exception;

    /**
     * 查询价格接口
     * app端迁移过来
     * @param record
     * @return
     */
    public List<Price> queryPrice(Price record);
}
